//
//  SuggestHeaderView.m
//  UI Demo
//
//  Created by Rainy Zou on 15/12/1.
//  Copyright © 2015年 Rainy Zou. All rights reserved.
//

#import "SuggestHeaderView.h"

@implementation SuggestHeaderView

-(instancetype)initWithFrame:(CGRect)frame
{
    if(self == [super initWithFrame:frame])
    {
        UIButton *labelView = [[UIButton alloc]init];
        labelView.frame = CGRectMake(0, 0, self.frame.size.width, self.frame.size.height);
        labelView.backgroundColor = [UIColor lightGrayColor];
        [labelView setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
        labelView.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
        labelView.contentEdgeInsets = UIEdgeInsetsMake(0, 10, 0, 0);
        
        _button = labelView;
        
        labelView.enabled= NO;
        
        
        [self addSubview:labelView];
    }
    return self;
}

@end
